
<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<script>
  $(function () {
      if($("#contentLeftTable tr").length>1){
          $("#contentLeftTable").find("tr").eq(1).click();
          $("#contentLeftTable").find("tr").eq(1).addClass("table-selected");
      }
  })
</script>
<section class="panel">
  <header class="panel-heading">已经分配了床位的在院病人列表</header>
  <div class="panel-body">
    <div class="table-responsive no-border">
      <table id="contentLeftTable" class="table table-bordered mg-t datatable">
        <thead>
        <tr>
          <th>床号</th>
          <th>床标号</th>
          <th>住院号</th>
          <th>姓名</th>
          <th>性别</th>
        </tr>
        </thead>
        <tbody>
        <c:forEach items="${inBedList}" var="inBed">
          <tr  onclick = searchRight('${inBed.patVisit.visitNo}','${inBed.patientId}','${inBed.visitId}')>
            <td>${inBed.bedNo}</td>
            <td>${inBed.bedLabel}</td>
            <td>${inBed.patVisit.visitNo}</td>
            <td>${inBed.patVisitIndex.name}</td>
            <td>${fns:getDictLabel(inBed.patVisitIndex.sex,"SEX_DICT" ,"" )}</td>
          </tr>
        </c:forEach>
        </tbody>
      </table>
    </div>
  </div>
</section>
